package com.ujiuye.bean;

/**
 * ClassName: ResultVO <br/>
 * Description: <br/>
 * date: 2021/9/16 19:38<br/>
 *
 * @author 荒<br />
 * @since JDK 1.8
 */
public class ResultVO {
    private int code;  //状态码 200 OK  404 未找到
    private String msg; //响应信息
    private Object obj; //返回值

    public ResultVO() {
    }

    public ResultVO(int code, String msg, Object obj) {
        this.code = code;
        this.msg = msg;
        this.obj = obj;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    @Override
    public String toString() {
        return "ResultVO{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", obj=" + obj +
                '}';
    }
}
